<?php
$isAjax = $this->params['isAjax'];
$javascript->link("/effects/js/jquery.form.js",false);
if(!$isAjax)
{
	echo $form->create("Listing",array("url"=>"/".$this->params['url']['url'],'id'=>"listing_form","type"=>"file"));
}
?>
<div id="form_content">
<?php
echo $form->input("Listing.step",array("type"=>"hidden","value"=>$step));
echo $this->element("listing_forms/select_category");
?>
	<?php if($step >= 2 && AppUtility::allowPaidListing()){
		echo $this->element("listing_forms/select_plans",array("categoryIds"=>$this->data['Listing']['categories']));
	} ?>
	<?php if($step >= 2){
		echo $this->element("listing_forms/add_fields");
		
		echo "<div class='upload_filesize_limit_msg'>";
		echo sprintf(__("The total size of all the files uploaded should be less than %s", true), ((ini_get("post_max_size") < ini_get("upload_max_filesize"))?ini_get("post_max_size"):ini_get("upload_max_filesize")));
		echo "</div><div class='clear'></div>";
	} ?>
</div>
<?php
if(!$isAjax)
{
	echo $form->end("Save");
}
?>
